#! /bin/bash
processName=$1
echo "$processName 开始处理，kill -15"
pid=`ps -ef | grep $processName | grep -v "grep" | grep "java"| awk '{print $2}'`
echo $pid

for id in $pid
do
    kill -15 $id  
    echo "killed $id"  
	break
done
